/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

import com.xy.lang.validation.annotation.AlertMessage;

/**
 *
 * 
 * @author zsp
 * @date 2020-8-19
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ListResourceRequest {	
	
	@NotNull(message = "pageIndexRequired")
	@AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
	private Integer pageIndex;

	@NotNull(message = "pageSizeRequired")
	@AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
	private Integer pageSize;

	/**
	 * 类型：0-菜单，1-功能
	 */
	private Integer type;
	/**
	 * 状态：0-未启用，1-启用
	 */
	private Integer status;
	/**
	 * 应用编码
	 */
	private Integer applicationCode;
	/**
	 * 上级资源Id
	 */
	private Long parentResourceId;
	/**
	 * 是否返回上级资源
	 */
	private Boolean withParentResource;

}
